package com.huabo.system.mysql.mapper;

import com.huabo.system.mysql.entity.TblFlowdesMySql;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface TblFlowdesMySqlMapper extends Mapper<TblFlowdesMySql> {

    @Select("select * from TBL_FLOWDES where FLOWID= #{flowid}  ORDER BY POSITION ")
    List<TblFlowdesMySql> findBysqlFlowds(String flowid);

    @Delete("DELETE FROM TBL_FLOWDES WHERE FLOWDESID = #{id}")
    void deleteByid(String id);
}
